#include "dialog_bigpicture.h"

bigPicture::bigPicture(QImage &qImg, QWidget *parent = 0, int camNum=0)
    : QDialog(parent) {

    label = new QLabel("empty");  //create the label with some default text

    QHBoxLayout *mainLayout=new QHBoxLayout;
    mainLayout->addWidget(label);
    setLayout(mainLayout);

    label->setPixmap(QPixmap::fromImage(qImg));

    thisCam=camNum; //set the cam number for this object

    }

bigPicture::~bigPicture() {
    }

void bigPicture::updateBigPicture(int camNum, QImage qImg) {
    if(camNum == thisCam) // true if this object image needs to update (allows two big pictures to be open at the same time)
    label->setPixmap(QPixmap::fromImage(qImg));
    }
